/**
 * Project Name:cloud-config-client
 * File Name:TestController.java
 * Package Name:com.talkweb.cloud.config.client.controller
 * Date:2017年8月17日上午9:06:48
 * Copyright (c) 2017, jiazhijie@talkweb.com.cn All Rights Reserved.
 *
*/

package com.talkweb.cloud.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Value("${mysqldb.datasource.url}")
    String url;

    @RequestMapping(value = "/url")
    public String hi() {
        return url;
    }
}

